<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-pathway-patient-pop" data-options="border:false;width:100%">
	<div class="easyui-panel list-panel" data-options="openAnimation:'slide',closeAnimation:'slide'">
	  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
			<p>
				<span class="badge">提示</span>
				 <strong><font color="red">双击</font></strong> 记录行, 可以查看基本药物比例详情
			</p>			
		</div>   
	
		<table class="easyui-datagrid dg-list" 
			data-options="rownumbers:true,
			animate: true,						
			striped:true,
			border:true,
			//singleSelect:false,
			idField: 'id',						
			fitColumns: true,
			checkOnSelect:true,
			selectOnCheck:true,
			pagination : true">
			
			<thead>						
				<tr>								
					<th field="dept_name" width="80" align="center">科室</th>					
					<th field="accessPer" width="60" align="center" data-options="
					styler: function(value,row,index){
						if (value * 100 <50){
							return 'background-color:#ffee00;color:red;';							
						}else{
							return 'background-color:#ffeeff;color:green;';
						}
					},
					formatter: function(value,row,index){
						var tvalue = 100 * value;
						if (tvalue >= 0){
							return   tvalue.toFixed(2) +'%';							
						}
					}
				">入组率%</th>
					<th field="completePer" width="100" align="center" data-options="
					styler: function(value,row,index){
						if (value * 100 <70){
							return 'background-color:#ffee00;color:red;';							
						}else{
							return 'background-color:#ffeeff;color:green;';
						}
					},
					formatter: function(value,row,index){
						var tvalue = 100 * value;
						if (tvalue >= 0){
							return   tvalue.toFixed(2) +'%';							
						}
					}
				">完成率%</th>
					<th field="variationPer" width="60" align="center" data-options="
					styler: function(value,row,index){
						if (value * 100 > 30){
							return 'background-color:#ffee00;color:red;';							
						}else{
							return 'background-color:#ffeeff;color:green;';
						}
					},
					formatter: function(value,row,index){
						var tvalue = 100 * value;
						if (tvalue >= 0){
							return   tvalue.toFixed(2) +'%';							
						}
						else{
							return '0.0%'
						}
					}
				">变异率%</th>													
										
				</tr>
			</thead>
			
		</table>
	</div>
	
	<div class="easyui-panel details-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
	  	   
		<div>						
			<a href="javascript:void(0);" class="easyui-linkbutton function-btn l-btn l-btn-small l-btn-plain" iconcls="icon-undo" plain="true">返回</a>
		</div>
		<table class="easyui-datagrid dg-list" 
			data-options="rownumbers:true,
			animate: true,						
			striped:true,
			border:true,
			//singleSelect:false,
			idField: 'id',						
			fitColumns: true,
			checkOnSelect:true,
			selectOnCheck:true,
			pagination : true">
			
			<thead>						
				<tr>								
					<th field="doct_name" width="80" align="center">医生</th>					
					<th field="accessPer" width="60" align="center" data-options="
					styler: function(value,row,index){
						if (value * 100 <50){
							return 'background-color:#ffee00;color:red;';							
						}else{
							return 'background-color:#ffeeff;color:green;';
						}
					},
					formatter: function(value,row,index){
						var tvalue = 100 * value;
						if (tvalue >= 0){
							return   tvalue.toFixed(2) +'%';							
						}
						else{
							return '0.0%'
						}
					}
				">入组率%</th>
					<th field="completePer" width="100" align="center" data-options="
					styler: function(value,row,index){
						if (value * 100 <70){
							return 'background-color:#ffee00;color:red;';							
						}else{
							return 'background-color:#ffeeff;color:green;';
						}
					},
					formatter: function(value,row,index){
						var tvalue = 100 * value;
						if (tvalue >= 0){
							return   tvalue.toFixed(2) +'%';							
						}
						else{
							return '0.0%'
						}
					}
				">完成率%</th>
					<th field="variationPer" width="60" align="center" data-options="
					styler: function(value,row,index){
						if (value * 100 > 30){
							return 'background-color:#ffee00;color:red;';							
						}else{
							return 'background-color:#ffeeff;color:green;';
						}
					},
					formatter: function(value,row,index){
						var tvalue = 100 * value;
						if (tvalue >= 0){
							return   tvalue.toFixed(2) +'%';							
						}
						else{
							return '0.0%'
						}
					}
				">变异率%</th>	
			</tr>
			</thead>
			
		</table>
	</div>
	
</div> 

 
<script>
requirejs(['popListPage','pathwayPatient','domReady!'],function(flowedit,pathwayPatient,doc){
	flowedit.init({doc:doc,
		rootId:'panel-pathway-patient-pop',
		subSystemCode:'medical',
		moduleCode:'medicalPathwayPatientConclusionInfo',
		queryModule:'medicalPathwayPatientConclusion',
		editWindow:'pathway-patient-pop-win',
		initElement:pathwayPatient.initEdit,				
		rowClick:pathwayPatient.clickBizRow,
		buttonExtends:pathwayPatient.buttonExtends
	});
});	
</script>

